<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

/*Route::get('/', function () {
    return view('welcome');
});*/


Route::group(['prefix' => 'home', 'namespace' => 'Home'], function () {
    Route::group(['prefix' => 'tool', 'namespace' => 'Tool'], function () {
        Route::group(['prefix' => 'metail'], function () {
            Route::get('index', 'MetailController@index');
        });
    });
    Route::group(['namespace' => 'Auth'], function () {
        Route::get('login', 'LoginController@getLogin');
        Route::post('post_login', 'LoginController@postLogin');
        Route::get('logout', 'LoginController@logout');
        Route::post('post_register', 'RegisterController@postRegister');
        Route::post('check_date', 'RegisterController@checkDate');

    });
    Route::group(['namespace' => 'Tv'], function () {
        Route::get('tv', 'TvController@tv');
    });
    Route::get('/index', 'IndexController@index');
});

Route::get('/', 'Home\IndexController@index');
